package com.txc.openfeign.common.admin.api;

import com.txc.openfeign.common.admin.factory.UserFallbackFactory;
import com.txc.common.global.model.LoginUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 用户接口
 *
 * @ClassName: UserClient
 * @Author: TXC
 * @Date: 2023-08-13 21:35
 **/
@FeignClient(value = "cloud-admin", contextId = "userClient", fallbackFactory = UserFallbackFactory.class)
public interface UserClient {
    @GetMapping("/user/userInfo")
    LoginUser getUserinfo(@RequestParam("username") String username);
}
